<template>
  <div class="card">
    <div class="left">
      <div class="iconfont " :class="info.icon" :style="{ color: info.color }"></div>
    </div>
    <div class="right">
      <div class="container">
        <div class="title">{{ info.title }}</div>
        <h3 class="count">{{ info.count }}</h3>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Card',
  props: {
    info: {
      type: Object
    }
  }
}
</script>

<style scoped>
.card {
  width: 100%;
  height: 100%;
  display: flex;
}
.left {
  flex: 1;
  align-items: center;
  justify-content: center;
  /* background-color: pink; */
}
.iconfont {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: #1296db;
}
.right {
  flex: 1;
  align-items: center;
  justify-content: center;
  position: relative;
}
.container {
  /* background-color: pink; */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.title {
  color: #d6d6d6;
  font-size: 14px;
}
.count {
  margin: 0;
  margin-top: 5px;
}
</style>
